﻿@model BrnMall.Web.StoreAdmin.Models.NewsTypeModel

@section header{
    <title>添加新闻类型</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.unobtrusive.js"></script>
}

@section body{
<h1 class="rightH1">
    微信小程序 &gt; 内容管理 &gt; 内容分类  &gt; <span class="rightH1-cur">添加内容分类</span>
<div class="right">
<a href="@Html.Raw(ViewData["referer"].ToString())" class="menuBT"><img src="/admin_store/images/goback.jpg" />返回列表</a>
<div class="clear"></div>
</div>
<div class="clear"></div>
</h1>

@using (Html.BeginForm())
{
<div class="addTable">
<table width="100%">
  <tr>
    <td width="102px" align="right">名称：</td>
    <td>@Html.TextBoxFor(x => x.NewsTypeName, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.NewsTypeName)</td>
    </tr>
    <tr>
        <td align="right">排序：</td>
        <td>@Html.TextBoxFor(x => x.DisplayOrder, new { @class = "input", size = "3" })@Html.ValidationMessageFor(x => x.DisplayOrder)</td>
    </tr>
    <tr>
        <td align="right">首页显示：</td>
        <td >@Html.CheckBoxFor(x => x.IsHome, new { @class = "checkbox" })</td>
    </tr>
    <tr>
        <td align="right">展示类型：</td>
        <td >
        @Html.DropDownListFor(t => t.DisplayType, new[] { new SelectListItem() { Selected = true, Text = "单图", Value = "pic_1" },
       new SelectListItem() { Selected = false, Text = "多图", Value = "pic_3" },
        new SelectListItem() { Selected = false, Text = "列表", Value = "list" },
       new SelectListItem() { Selected = false, Text = "手动轮播", Value = "swiperlist" }})
        </td>
    </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td>
    <a href="" class="addBt" id="sumbitBut" ><img src="/admin_store/images/submit.jpg" /></a>
            <script type="text/javascript">
                $(function () {
                    $("#sumbitBut").click(function () {
                        $("form:first").submit();
                        return false;
                    })
                });
        </script>
    </td>
    </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</table>
</div>
}
}